ExamPlay Light Logo
เข้าสู่ระบบ

Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 8 - No. 8)

Which of the following is the most efficient approach to reading values from a file?
Using the FOR...TO...NEXT loop with an array.
Using a REPEAT...UNTIL loop.
Using the WHILE...DO...ENDWHILE loop.
Using the INPUT statement.

คำอธิบาย

FOR...TO...NEXT loops are used in the most efficient way to iterate over an array. The end and start values are known, and are easy to calculate the amount of iterations necessary for the loop.

ความคิดเห็น (0)

เข้าสู่ระบบเพื่อแสดงความคิดเห็น
โฆษณา
BrainBehindX Inc Logo
©2026; ขับเคลื่อนโดย BrainBehindX Inc